{template 'common/header'}
<script language="JavaScript" src="{MODULE_URL}template/public/js/delete.js"></script>
<div>
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">管理广告</a></li>
        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">添加广告</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="home">

            <!--列表循环开始-->
            <div class="panel panel-default">
                <div class="panel-heading">管理广告</div>
                <div class="panel-body">
                    <table class="table table-hover">
                        {template 'ads/ads_top'}
                        <tbody>
                        {loop $ads $key $ads}
                        {template 'ads/ads_item'}
                        {/loop}
                        </tbody>
                    </table>
                </div>
            </div>
            <!--列表循环结束-->
        </div>
        <div role="tabpanel" class="tab-pane" id="profile">{template 'ads/ads_add'}</div>
    </div>
</div>
{template 'common/footer'}